<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:89:"E:\andiffcrm\fastadmin20180314\public/../application/admin\view\school\teacher\index.html";i:1521472266;s:73:"E:\andiffcrm\fastadmin20180314\application\admin\view\layout\default.html";i:1521019243;s:70:"E:\andiffcrm\fastadmin20180314\application\admin\view\common\meta.html";i:1521019243;s:72:"E:\andiffcrm\fastadmin20180314\application\admin\view\common\script.html";i:1521019243;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <div class="panel panel-default panel-intro">
	<div class="panel-body">
		<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade active in" id="one">
			<div class="widget-body no-padding">
			<div class="bootstrap-table">
				<div class="commonsearch-table">
					<form class="form-horizontal form-commonsearch" action="" method="get">
					<fieldset>
					<div class="row">
						<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
						<label for="course" class="control-label col-xs-4">课程</label>
						<div class="col-xs-8">
<select id="s-course" name="search[course]"  class="form-control selectpicker">
<option value="0">请选择</option>
								<option value="1" <?php if(isset($course)): if($course == '1'): ?>selected="selected"<?php endif; endif; ?>>语文</option>
								<option value="2" <?php if(isset($course)): if($course == '2'): ?>selected="selected"<?php endif; endif; ?>>数学</option>
								<option value="3" <?php if(isset($course)): if($course == '3'): ?>selected="selected"<?php endif; endif; ?>>英语</option>
</select>
						</div>
				</div>
						<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
						<label for="name" class="control-label col-xs-4">姓名</label>
						<div class="col-xs-8">
							<input type="text" class="form-control" name="search[name]" value="<?php echo isset($name)?$name:''; ?>" placeholder="姓名" id="s-name" data-index="Name" />
						</div>
				</div>
					<div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
						<div class="col-sm-8 col-xs-offset-4 text-center">
						<input type="hidden" name="search[classid]" value="<?php echo isset($classid)?$classid:''; ?>" />
						<input type="hidden" name="offset" value="<?php echo $offset; ?>" />
						<input type="hidden" name="limit" value="<?php echo $limit; ?>" />
						<button type="submit" class="btn btn-success">搜索</button>
						<button type="reset" class="btn btn-default">重置</button>
						</div>
				</div>
			</div>
			</fieldset>
		</form>
	</div>
	<div class="fixed-table-toolbar">
		<div class="bs-bars pull-left">
			<div id="toolbar" class="toolbar" style="position: relative;">
				<a href="javascript:window.location.reload();" class="btn btn-primary btn-refresh" title="刷新">				<i class="fa fa-refresh"></i></a>
				<a href="javascript:;" url="school/teacher/add" class="btn btn-success btn-add thisaddtabs" title="添加">				<i class="fa fa-plus"></i> 添加</a>
				<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled" title="编辑"><i class="fa fa-pencil"></i> 编辑</a>
				<a href="javascript:;" class="btn btn-danger btn-del btn-disabled" title="删除"><i class="fa fa-trash"></i>删除</a>
				<a href="javascript:;" class="btn btn-danger btn-import" title="导入" id="btn-import-GlaqcJ" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false" initialized="true" style="position: relative; z-index: 1;"><i class="fa fa-upload"></i> 导入</a>
			</div>
		</div>
		<div class="columns columns-right btn-group pull-right">
			<button class="btn btn-default" type="button" id="toggleview" name="toggleview" aria-label="toggle" title="切换">
				<i class="glyphicon glyphicon-list-alt icon-list-alt"></i>
			</button>
			<div class="keep-open btn-group" title="列">
				<button type="button" aria-label="columns" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
				<i class="glyphicon glyphicon-th icon-th"></i><span class="caret"></span></button>
			<ul class="dropdown-menu" role="menu">
				<li role="menuitem" class="cheng_showlist">
				<label><input type="checkbox" data-field="classid" value="09ba70e9263841ab968ddba7156be84b" checked="checked">班级</label>
				</li>
				<li role="menuitem" class="cheng_showlist">
				<label><input type="checkbox" data-field="course" value="fcf571b411cb4587800649aaa9100ab7" checked="checked">课程</label>
				</li>
				<li role="menuitem" class="cheng_showlist">
				<label><input type="checkbox" data-field="name" value="a115afcddd6a41dcbb8affa0a90efa5b" checked="checked">姓名</label>
				</li>
			</ul>
		</div>
		<div class="export btn-group">
			<button class="btn btn-default dropdown-toggle" aria-label="export type" title="导出数据" data-toggle="dropdown" type="button"><i class="glyphicon glyphicon-export icon-share"></i> <span class="caret"></span></button>
			<ul class="dropdown-menu" role="menu">
				<li role="menuitem" data-type="json"><a href="javascript:void(0)">JSON</a></li>
				<li role="menuitem" data-type="xml"><a href="javascript:void(0)">XML</a></li>
				<li role="menuitem" data-type="csv"><a href="javascript:void(0)">CSV</a></li>
				<li role="menuitem" data-type="txt"><a href="javascript:void(0)">TXT</a></li>
				<li role="menuitem" data-type="doc"><a href="javascript:void(0)">MS-Word</a></li>
				<li role="menuitem" data-type="excel"><a href="javascript:void(0)">MS-Excel</a></li>
			</ul>
			</div>
		</div>
	<div class="fixed-table-container">
		<div class="fixed-table-body">
		<table id="table" class="table table-striped table-bordered table-hover" data-operate-edit="1" data-operate-del="1" width="100%">
			<thead>
				<tr>
					<th class="bs-checkbox" data-field="0">
					<div class="th-inner"><input id="chkSelectAll" name="chkSelectAll" type="checkbox" /></div>
					<div class="fht-cell"></div>
					</th>
					<th data-field="classid">
					<div class="th-inner">班级</div><div class="fht-cell"></div>
					</th>
					<th data-field="course">
					<div class="th-inner">课程</div><div class="fht-cell"></div>
					</th>
					<th data-field="name">
					<div class="th-inner">姓名</div><div class="fht-cell"></div>
					</th>
					<th data-field="operate"><div class="th-inner">操作</div>
					<div class="fht-cell"></div>
					</th>
				</tr>
			</thead>
			<tbody data-listidx="0" id="datalist">
				<?php if(is_array($lists) || $lists instanceof \think\Collection || $lists instanceof \think\Paginator): $k = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
				<tr data-index="<?php echo $k; ?>">
					<td class="bs-checkbox" columnname="itemid">
					<input data-index="<?php echo $k; ?>" name="btSelectItem" type="checkbox" value="<?php echo $vo['itemid']; ?>" /></td>				<?php if(is_array($columnlist) || $columnlist instanceof \think\Collection || $columnlist instanceof \think\Paginator): $kk = 0; $__LIST__ = $columnlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($kk % 2 );++$kk;if(($v['isshowlist']==1) and ($v['columnenname']!='itemid')): ?>
					<td columnname="<?php echo ucfirst($v['columnenname']); ?>"><?php echo $vo[$v['columnenname']]; ?>
					</td>
					<?php endif; endforeach; endif; else: echo "" ;endif; ?>
					<td columnname="caozuo">
						
						<a href="/admin/school/teacher/edit?dialog=1&amp;ids=<?php echo $vo['itemid']; ?>" class="btn btn-xs btn-success btn-editone" title="编辑"><i class="fa fa-pencil"></i></a>&nbsp;
						<a href="javascript:;" class="btn btn-xs btn-danger btn-delone" title="<?php echo $vo['itemid']; ?>"><i class="fa fa-trash"></i></a>
					</td>
				</tr>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
		</table>
	</div>
	</div>
			<div class="fixed-table-footer" style="display: none;">
				<table><tbody><tr></tr></tbody></table>
			</div>
			<div class="fixed-table-pagination" style="display: block;">
				<div class="pull-left pagination-detail">
				<span class="pagination-info">
				显示第 <?php echo $offset+1; ?> 到第 <?php if($totalpage == $page): ?><?php echo $total; else: ?><?php echo $limit*$page; endif; ?> 条记录，总共 <?php echo $total; ?> 条记录</span>
			</div>
			<div class="pull-right pagination">
				<ul class="pagination">
				<?php if($total <= $limit || $offset == 0): ?>
					<li class="page-pre"><a href="#" class="btn-disabled disabled">上一页</a></li>
				<?php else: ?>
					<li class="page-pre"><a href="/<?php echo $surl; ?>&offset=<?php echo $offset-$limit; ?>">上一页</a></li>
				<?php endif; $__FOR_START_12234__=1;$__FOR_END_12234__=($totalpage+1);for($i=$__FOR_START_12234__;$i < $__FOR_END_12234__;$i+=1){ ?>
					<li class="page-number <?php if($i == $page): ?>active<?php endif; ?>">
					<a href="<?php echo $surl; ?>&offset=<?php echo $limit*($i-1); ?>"><?php echo $i; ?></a></li>
				<?php } if($total <= $limit): ?>
					<li class="page-next"><a href="/<?php echo $surl; ?>&offset=<?php echo $offset+$limit; ?>">下一页</a></li>
				<?php else: ?>
					<li class="page-next"><a href="#">下一页</a></li>
				<?php endif; ?>
				</ul>
			</div>
		</div>
	</div>
	</div><div class="clearfix"></div>
	</div>
	</div>
	</div>
	</div>
	</div>
	</div>
<script type="text/javascript">
var pagedata = {
	list: <?php echo json_encode($lists); ?>,
	columns:<?php echo json_encode($columnlist); ?>
};
</script>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>